package com.yootk.common.util;

import jakarta.servlet.ServletInputStream;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Scanner;

public class ServletUploadUtil {
    private ServletInputStream servletInputStream; // 二进制接收
    private Map<String, List<String>> textParam = new HashMap<>(); // 保存文本参数

    public ServletUploadUtil(ServletInputStream servletInputStream) {
        this.servletInputStream = servletInputStream;
        this.handleUpload(); // 处理上传信息
    }

    private void handleUpload() {
        Scanner scanner = new Scanner(this.servletInputStream); // 扫描流
        while (scanner.hasNext()) {

        }
    }
}
